package com.adjy.pathbuilders.objects.button.listeners;

import com.adjy.pathbuilders.state.Game;
import com.adjy.pathbuilders.state.GameState;

public class ChangeGameStateButtonListener implements ButtonListener {
	
	private Game game;
	private GameState state;
	
	public ChangeGameStateButtonListener(Game game, GameState state) {
		this.game = game;
		this.state = state;
	}

	@Override
	public void onButtonPressed() {
		game.changeState(state);
	}

}
